<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="lib/react.development.js"></script>
	<script src="lib/react-dom.development.js"></script>
	<script src="lib/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
</body>
<script type="text/babel">
	// 框架 类库  类组件  函数组件hooks
	const root = ReactDOM.createRoot(document.querySelector("#root"));
	let num = 0;
	const App = ()=>(
		<button onClick={()=>{
			num+=1;
			root.render(<App/>);
		}}>{num}</button>
	)
	root.render(<App/>);
</script>
</html>